import Request from 'request-promise'
const request = async options => {
  options = Object.assign({}, options)
  try {
    const res = await Request(options)
    return res
  } catch(e) {
    console.error(`连接错误:${e}`)
  }
}

export default request